export interface OrderModel{
    id:any
    orderNo:string
    examTime:any
    payTime:string
    amount:number
    details:string
    statusName:string 
    status:any
    authorization:any
}  
export interface PageParam{
    pageNum:number
    pageSize:number
}
export async function getOrderList(param:PageParam){
    return usePost<any>('/certificateOrder/lists',param)
}

export interface OrderParam{
    id:any
    status:any
    payType:any
}
//取消订单
export async function cancelOrderApi(param:OrderParam){
    return usePost<void>('/certificateOrder/cancelOrder',param)
}
//扫码支付
export interface ScanPayModel{
    orderNo:string
    codeUrl:string
}

export async function scanPayApi(orderNo:OrderParam){
    return usePost<ScanPayModel>('/certificateOrder/orderPay',orderNo)
}
//支付订单
export async function payOrderApi(param:OrderParam){
    return usePost<ScanPayModel>('/certificateOrder/payOrder',param)
}